// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'id',
        footer: "Foots",
        cnName: '四联测控供应商',
        name: 'CSMC_Supplier',
        url: "/CSMC_Supplier/",
        sortName: "id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"supplierCode":"","supplierName":"","product":"","supplierLoginCode":""};
    const editFormOptions = [[{"title":"供应商代码","field":"supplierCode"},
                               {"title":"供应商名称","field":"supplierName"},
                               {"title":"产品","field":"product"},
                               {"title":"供应商登录代码","field":"supplierLoginCode"}]];
    const searchFormFields = {"supplierCode":"","supplierName":"","product":"","supplierLoginCode":""};
    const searchFormOptions = [[{"title":"供应商代码","field":"supplierCode","type":"like"},{"title":"供应商名称","field":"supplierName","type":"like"},{"title":"产品","field":"product","type":"like"},{"title":"供应商登录代码","field":"supplierLoginCode","type":"like"}]];
    const columns = [{field:'id',title:'ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'supplierCode',title:'供应商代码',type:'string',width:110,align:'left'},
                       {field:'materialType',title:'物料类别',type:'string',width:110,align:'left'},
                       {field:'supplierName',title:'供应商名称',type:'string',width:110,align:'left'},
                       {field:'supplierLevel',title:'供应商等级',type:'string',width:110,align:'left'},
                       {field:'product',title:'产品',type:'string',width:110,align:'left'},
                       {field:'HONSupplierCode',title:'HON供应商代码',type:'string',width:110,align:'left'},
                       {field:'note',title:'备注',type:'string',width:110,align:'left'},
                       {field:'otherNote',title:'其他备注',type:'string',width:110,align:'left'},
                       {field:'supplierLoginCode',title:'供应商登录代码',type:'string',width:110,align:'left'},
                       {field:'CreateID',title:'创建ID',type:'int',width:100,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left'},
                       {field:'ModifyID',title:'修改ID',type:'int',width:100,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}